﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModelUpdate.aspx.cs" Inherits="Whir_System_Module_Contents_ModelUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>功能模块管理</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

    <!--提示文字-->

    <script src="../../Js/common.js" type="text/javascript"></script>

    <script language="javascript">
        showhint('0','<b>功能模块介绍</b><br/>一个功能模块对应的是数据库的一张表，可以方便添加修改数据库中的字段，便于管理后台表单内容');
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title"><strong>功能模块修改</strong></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">功能模块名称： </td>
                <td height="30" align="left" class="form_td">
                    <asp:TextBox ID="txtSysModelName" runat="server" MaxLength="200" Width="200px" />
                    <span class="form_desc">功能模块的名称可以输入中英文字符</span> </td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">功能模块描述： </td>
                <td height="30" align="left" class="form_td">
                    <asp:TextBox ID="txtSysModelDesc" runat="server" TextMode="MultiLine" CssClass="input_textarea"
                        Height="60px" Width="200px" />
                </td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">数据表名： </td>
                <td height="30" align="left" class="form_td">
                    <asp:Label ID="lbTableName" runat="server" Text="" />
            </tr>
            <tr>
                <td height="30" align="left" class="form_tdText"></td>
                <td height="30" align="left" class="form_td">
                    <asp:Button ID="Button1" runat="server" CssClass="btn_default" OnClick="Button1_Click"
                        Text="提交" OnClientClick="return checkFormsys();" />
                    &nbsp;&nbsp;
                    <asp:Button ID="Button3" runat="server" CssClass="btn_default" OnClick="Button3_Click"
                        Text="返回" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
<!-- 文本框的样式初始化-->

<script language="javascript" src="../../Js/common.js"></script>

<script type="text/javascript">initAutoFormStyle();</script>

<!-- 验证-->

<script language="javascript" type="text/javascript" src="../../../Script/Validate.js"></script>

<script type="text/javascript">
function checkFormsys(){
        var vs = [
        "txtSysModelName|noNull|请输入功能模块的名称，名称可以为中文、英文等！",
        "txtSysTableName|noNull|请输入功能模块在数据库中存在的表名，表的名称只能为英文！"
        ]; 
        if(Validator(vs))
           return true;
        else
            return false;    
}
</script>

